import { defineStore } from 'pinia'

export interface DictInfoType {
  label: string
  options: any[]
}
export const useDictStore = defineStore('dict', {
  state: (): { dictInfo: DictInfoType | null } => ({
    dictInfo: null
  }),
  getters: {
    getDictInfo: state => state.dictInfo
  },
  actions: {
    setDictInfo(dictInfo: DictInfoType) {
      this.dictInfo = dictInfo
    }
  }
})
